package binance.filters

class SecurityFilters {
    def filters = {
        loginCheck(controller:'*', action:'*') {
            before = {
                if (params.controller == null) {
                    redirect(url:"/web")
                    return true
                } else if(!session.user && !actionName.equals('authenticate')) {
                    redirect(url:"/web")
                    return false
                }
            }
        }
    }
}
